package top.minuy.structure.tree.avl;

/*
 * @author Minuy
 * @time 14:54
 * @date 2021/11/4
 */
public class Test {
    public static void main(String[] args) {
        int[] a = {1, 5, 2};
        AVLTree<Integer> avlTree = new AVLTree<>();
        for (int b : a) {
            avlTree.add(b);
        }
        System.out.println("isBST : " + avlTree.isBST());
        System.out.println("isBalanced : " + avlTree.isBalanced());
        System.out.println(avlTree);
    }
}
